package com.juyu.miliao.scheduler.controller;

import com.juyu.miliao.scheduler.service.SignInService;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * @ClassName: SignInController
 * @Description: TODO
 * @Author zhangcheng
 * @Date 19-9-25下午1:53
 */
@RestController
public class SignInController {
    @Resource
    private SignInService signInService;

    @DeleteMapping("/signIn/consecutiveDays")
    public void resetConsecutiveDays() {
        signInService.resetSignInData();
    }

    @GetMapping("/signIn/dryRun/consecutiveDays")
    public void testResetConsecutiveDays() {
        signInService.testRestSignInData();
    }

}
